//
//  ACEGenderCell.m
//  ACE
//
//  Created by zhangtao on 2018/8/14.
//  Copyright © 2018年 zt.td. All rights reserved.
//

#import "ACEGenderCell.h"

@implementation ACEGenderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)gender:(UIButton *)sender {
    if (sender.tag == 0) {
        _ladyBtn.selected = YES;
        _maleBtn.selected = NO;
    }else{
        _ladyBtn.selected = NO;
        _maleBtn.selected = YES;
    }
    
    if (self.genderCallBack) {
        self.genderCallBack(sender.tag);
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
